home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (3rd Edition)
/
The Business Master (3rd Edition).iso
/
files
/
commadio
/
fone1
/
xfoneprg.exe
/
arc
/
FNCOPY.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-01-30
|
2KB
|
72 lines
echo off
cls
rem ======================================================================
rem FNCOPY - Copy FONE(tm) program and data files
rem ======================================================================
rem %1 - FROM drive
rem %2 - TO drive
rem %3 - copy mode
rem 0 - backup hard disk
rem 1 - backup diskette
rem 2 - copy from hard disk
rem 3 - copy from diskette
rem ======================================================================
rem Copyright (c) 1990-92 by Eugene L. Woods, PE/EE. All rights reserved.
rem ======================================================================
if "%1" == "" goto missing
if "%2" == "" goto missing
if "%3" == "" goto missing
goto begin
:missing
echo Error *** FNCOPY.BAT, missing parameter.
goto :done
:begin
echo Copying FONE(tm) files from %1 to %2
if %3 == 1 goto diskette
if %3 == 3 goto diskette
goto harddisk
:diskette
diskcopy %1 %2
if %3 == 1 goto done
echo ATTENTION: Be sure target diskette is still mounted in drive %2...
pause
erase %2fnsetup.bin
erase %2personal.*
goto done
:harddisk
echo ATTENTION: Preparing to copy FONE(tm) files from hard drive %1 to %2
format %2
if %3 == 2 goto friend
copy %1fnsetup.bin %2
copy %1personal.* %2
:friend
copy %1abbrev.dat %2
copy %1areacode.bin %2
copy %1fncopy.bat %2
copy %1fn.exe %2
copy %1fone.bat %2
copy %1fnintro.dat %2
copy %1fnhelp.dat %2
copy %1fninfo.dat %2
copy %1hour.dat %2
copy %1interrts.bin %2
copy %1interwts.bin %2
copy %1intlcode.dbf %2
copy %1intlrts.bin %2
copy %1??rts.bin %2
copy %1??wts.bin %2
copy %1mtrx619.dat %2
copy %1pfix619.dat %2
copy %1rates619.dat %2
copy %1ypg.dat %2
BEEP
echo Copy complete!
:done